package models

import "github.com/smash-llj/Nexa-server/global"

type Group struct {
	global.BaseModal
	SessionId   string         `json:"sessionId" gorm:"not null"`
	NumberId    int            `json:"numberId" gorm:"type:varchar(36);not null;unique;comment:群ID"`
	OwnerId     int            `json:"ownerId" gorm:"type:varchar(36);not null;comment:群主ID"`
	Name        string         `json:"name" gorm:"type:varchar(100);comment:群名"`
	Avatar      string         `json:"avatar" gorm:"comment:群头像"`
	BgImage     string         `json:"bgImage" gorm:"not null;default:https://ik.imagekit.io/mpjl8xreo/treehole.png"`
	Description string         `json:"description" gorm:"comment:群描述"`
	Members     []*GroupMember `gorm:"foreignkey:GroupId;references:Id;"`
}
